package com.baidu.sggc.data.req;

import lombok.Data;

@Data
public class SolutionInfoListReq {
  private int pageNum;
  private int pageSize;

  /**
   * 搜索关键词
   */
  private String keyWord;

  public void validate() {
    if (pageNum < 1) {
      throw new IllegalArgumentException("pageNum cannot be less than 1");
    }
    if (pageSize < 1) {
      throw new IllegalArgumentException("pageSize cannot be less than 1");
    }
  }

}